package com.wwl.cms.utils.designModeTest.mediator.smarthouse;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/26 17:19
 * @description:
 */
public class Curtains extends Colleague {
    public Curtains(Mediator mediator,String name){
        super(mediator,name);
        mediator.Register(name,this);
    }
    @Override
    public void SendMessage(int stateChange){
        this.GetMediator().GetMessage(stateChange,this.name);
    }

    public void UpCurtains(){
        System.out.println("I am holding Up Curtains");
    }
}
